package com.yunti.springboot.controller;


import com.yunti.springboot.service.ExamDetailService;
import com.yunti.springboot.vo.Result;
import com.yunti.springboot.vo.req.GetAllExamDetailReq;
import com.yunti.springboot.vo.req.GetAllExamSubByClassReq;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/examDetail")
public class ExamDetailController {

    @Resource
    private ExamDetailService examDetailService;

    @PostMapping("/getAllExamDetailByClassId")
    public Result getAllExamDetailByClassId(@RequestBody GetAllExamDetailReq getAllExamDetailReq){
        return examDetailService.getAllExamDetailByClassId(getAllExamDetailReq);
    }
}
